<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录记录</title>
</head>
<body>
{% if user %}
    <h1>{{user.user_name}}的登录日志</h1>
    <h1><a href="{% url 'sop:log' user.id %}">返回</a></h1>
    {% if login %}
        <ul>
            {% for loginS in login %}
            <li>{{loginS.login_time}}{{loginS.logout}}</li>
            {% endfor %}
        </ul>
    {% endif %}
{% endif %}
</body>
</html>